package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the delivery database table.
 * 
 */
@Entity
@Table(name="delivery")
@NamedQuery(name="Delivery.findAll", query="SELECT d FROM Delivery d")
public class Delivery implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String deliveryid;

	private BigDecimal deliveredmoney;

	@Temporal(TemporalType.DATE)
	private Date delivery;

	private BigDecimal deliverymoney;

	private String staffid;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cid")
	private Customer customer;

	//bi-directional many-to-one association to Product
	@ManyToOne
	@JoinColumn(name="pid")
	private Product product;

	public Delivery() {
	}

	public String getDeliveryid() {
		return this.deliveryid;
	}

	public void setDeliveryid(String deliveryid) {
		this.deliveryid = deliveryid;
	}

	public BigDecimal getDeliveredmoney() {
		return this.deliveredmoney;
	}

	public void setDeliveredmoney(BigDecimal deliveredmoney) {
		this.deliveredmoney = deliveredmoney;
	}

	public Date getDelivery() {
		return this.delivery;
	}

	public void setDelivery(Date delivery) {
		this.delivery = delivery;
	}

	public BigDecimal getDeliverymoney() {
		return this.deliverymoney;
	}

	public void setDeliverymoney(BigDecimal deliverymoney) {
		this.deliverymoney = deliverymoney;
	}

	public String getStaffid() {
		return this.staffid;
	}

	public void setStaffid(String staffid) {
		this.staffid = staffid;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

}